package com.kerwin.springcloud.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.kerwin.springcloud.entities.CommonResult;

public class CustomerBlockHandler {

    /**
     * 必须为static方法，并且入参BlockException exception
     * @param exception
     * @return
     */
    public static CommonResult blockException1(BlockException exception){
        return new CommonResult(444, "客户自定义限流信息，blockException1");
    }

    public static CommonResult blockException2(BlockException exception){
        return new CommonResult(444, "客户自定义限流信息，blockException2");
    }
}
